package com.qfedu.edu.seckill.aclservice.controller;


import com.qfedu.edu.seckill.aclservice.service.UserService;
import com.qfedu.edu.seckill.result.R;
import com.qfedu.edu.seckill.vo.LoginVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaobobo
 * @since 2025-01-09
 */
@RestController
@RequestMapping("/aclservice/user")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("list")
    public R list(){
        return R.ok().data("userList",userService.list(null));
    }



    @PostMapping("login")
    public R login(@RequestBody LoginVo loginVo){
        return R.ok();
    }


}

